package cn.iocoder.yudao.module.call.dal.mysql.ivrintentionlabelstatistics;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.call.dal.dataobject.ivrintentionlabelstatistics.IvrIntentionLabelStatisticsDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.call.controller.admin.ivrintentionlabelstatistics.vo.*;

/**
 * 客户意向标签统计 Mapper
 *
 * @author 数创万维
 */
@Mapper
public interface IvrIntentionLabelStatisticsMapper extends BaseMapperX<IvrIntentionLabelStatisticsDO> {

    default PageResult<IvrIntentionLabelStatisticsDO> selectPage(IvrIntentionLabelStatisticsPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<IvrIntentionLabelStatisticsDO>()
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getFlowId, reqVO.getFlowId())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getCallId, reqVO.getCallId())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getMingzhongsuoyouwenti, reqVO.getMingzhongsuoyouwenti())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getMingzhongyewuwenti, reqVO.getMingzhongyewuwenti())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getKendingcishu, reqVO.getKendingcishu())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getJujuecishu, reqVO.getJujuecishu())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getKehujianghuacishu, reqVO.getKehujianghuacishu())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getTonghuashichang, reqVO.getTonghuashichang())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getKehutonghuaneirong, reqVO.getKehutonghuaneirong())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getKehutonghuaneirongKeys, reqVO.getKehutonghuaneirongKeys())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getZouwanzhuliucheng, reqVO.getZouwanzhuliucheng())
                .eqIfPresent(IvrIntentionLabelStatisticsDO::getKehuzuihouyijuhua, reqVO.getKehuzuihouyijuhua())
                .betweenIfPresent(IvrIntentionLabelStatisticsDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(IvrIntentionLabelStatisticsDO::getId));
    }

}